package com.lengyu.vxminiprogram.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengyu.vxminiprogram.dto.WorkOrderDto;
import com.lengyu.vxminiprogram.entity.WorkOrder;
import com.lengyu.vxminiprogram.entity.WorkOrderView;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface IWorkOrderViewConverter {
    WorkOrderView dtoToEntity(WorkOrderDto dto);
    WorkOrderDto entityToDto(WorkOrderView entity);
    List<WorkOrderDto> listEntityToDto(List<WorkOrderView> entityList);
    List<WorkOrderView> listDtoToEntity(List<WorkOrderDto> dtoList);
    Page<WorkOrderDto> pageEntityToDto(Page<WorkOrderView> entityPage);
}
